

env = Environment()

jsoncpp_path = '../../../../VCCode/trunk/thirdparty/jsoncpp'
common_path = '../../../../VCCode/trunk/base' 
simple_rpc  = '../../../../VCCode/trunk/new-simple-rpc'

includePaths = [
'-IE:/boost_1_49_0',
'-I'+jsoncpp_path+'/include',
'-I'+common_path, 
'-I../../../../VCCode/trunk/new-simple-rpc', 
'-I../thirdparty/apache-log4cxx-0.10.0/src/main/include',
'-D_WIN32_WINNT=0x0501', 
'-DWIN32',
'/MTd',
'/EHa',
'-DLOG4CXX_STATIC',
'-D_WIN32']


libpaths = ['E:/boost_1_49_0/stage/lib', 'D:/Developing/VCCode/out/bin/Win32/Debug']

libs = ['log4cxx.lib',
'apr.lib',
'aprutil.lib', 
'xml.lib', 
'ws2_32.lib',
'kernel32.lib', 
'user32.lib', 
'gdi32.lib', 
'winspool.lib', 
'comdlg32.lib', 
'advapi32.lib', 
'shell32.lib', 
'ole32.lib', 
'oleaut32.lib',
'uuid.lib', 
'odbc32.lib',
'odbccp32.lib']


sources = Glob('*.cpp')
sources.append(common_path+'/RefCounted.cc')
sources.append(common_path+'/Thread.cc')
sources.append(simple_rpc+'/event.cpp')
# jsoncpp cpp
sources_json = Glob(jsoncpp_path+'/src/json/*.cpp')
sources.append(sources_json)



env.Program(
	'wayixia-client', 
	source=sources,
	LIBS=libs, 
	LIBPATH=libpaths, 
	CCFLAGS=includePaths)



